<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <title>选择模版</title>
    <link rel="stylesheet" href="/style/weui.css"/>
    <link rel="stylesheet" href="/style/swiper.min.css"/>
    <link rel="stylesheet" href="/style/example.css"/>
</head>
<body ontouchstart>
<div class="page">
    <div class="page__bd" style="height: 100%;">
        <div class="weui-tab">
            <div class="weui-tab__panel order-list" style="padding-bottom: 50px;">
                <!-- list -->
                <?php foreach ($list as $temp) { ?>
                    <div class="weui-panel weui-panel_access">
                        <?php if ($pageFlg) { ?>
                        <div class="weui-panel__bd" onclick="javascript:location.href='/inventory/loss-data?tempId=<?=$temp['id'] ?>'">
                        <?php } else { ?>
                        <div class="weui-panel__bd" onclick="javascript:location.href='/inventory/count-data?tempId=<?=$temp['id'] ?>'">
                        <?php } ?>
                            <div class="weui-media-box weui-media-box_appmsg">
                                <div class="weui-media-box__bd">
                                    <h5 class="weui-media-box__title">模版名称：<?=$temp['name'] ?></h5>
                                    <p style="float: left">门店：<?=$temp['ShopName'] ?></p>
                                    <p style="float: right">创建人：<?=$temp['creator'] ?></p>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php } ?>
                <!-- list end-->
            </div>
            <div class="weui-form-preview__ft weui-footer_fixed-bottom" style="background-color: #fff; bottom: 0">
                <a class="weui-form-preview__btn" href="/">返回</a>
            </div>
        </div>
    </div>
</div>

<script src="/js/zepto.min.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
<script src="/js/swiper.min.js"></script>
</body>
</html>
